]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st-private: Warn if creating shadow for unallocated actors
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Fri, 13 Apr 2018 01:25:21 +0000 (21:25 -0400)
committerMarco Trevisan (Treviño) <mail@3v1n0.net>
Fri, 29 Jun 2018 09:00:25 +0000 (11:00 +0200)
src/st/st-private.c

index 882c2631e1ab0646ea82f6f0d1b3b272b453b4fe..512fbba4564e3d21015d62e30ea92fdf5351b8dc 100644 (file)
@@ -432,6 +432,8 @@ _st_create_shadow_pipeline_from_actor (StShadow     *shadow_spec,
   CoglPipeline *shadow_pipeline = NULL;
   float width, height;
 
+  g_return_val_if_fail (clutter_actor_has_allocation (actor), NULL);
+
   clutter_actor_get_size (actor, &width, &height);
 
   if (width == 0 || height == 0)